let myArray = [65,66,67,68]
for (let index = 0; index < myArray.length; index++) {
    const el = myArray[index];
   console.log(String.fromCharCode(el))
}


console.log(String.fromCharCode(68))
console.log("H".charCodeAt(0))

// -----------------------------
const content = "Abc*HJK"
const upperArr = []
const lowerArr = []
const otherArr = []

for (let index = 0; index < content.length; index++) {
    const ele = content[index];
    const loc = ele.charCodeAt(0)
    if (loc > 65 && loc <= 97) {
        console.log("字母大写")
        upperArr.push(ele)
    }    
    else if (loc >= 97 && loc <= 122){
        console.log("字母小写")
        lowerArr.push(ele)
    }
    else{
        console.log("其他字符")
        otherArr.push(ele)
    }

}
[].concat


//关键字 保留字 class void          普通函数
//function myPrint(){
 //   console.log("printing is going")
//}
//myPrint()

function normalFun(arr,value){
    arr.push(value)
}
//匿名函数
test = function (a){
    const content = a
    const upperArr = []
    const lowerArr = []
    const otherArr = []
    for (let index = 0; index < content.length; index++) {
        const ele = content[index];
        const loc = ele.charCodeAt(0)
        if (loc >= 65 && loc <= 96){
            upperArr.push(ele)
        }
        else if (loc >= 97 && loc <= 122 ){
            lowerArr.push(ele)
        }
        else {
            otherArr.push(ele)
        }
    }
    let flag1 = upperArr.length
    let flag2 = lowerArr.length
    let flag3 = upperArr.concat(lowerArr).reverse().pop().length
    console.log("大写字母数量" + flag1)
    console.log("小写字母数量" + flag2)
    console.log("翻转数组" + flag3)
    }
    test("Abc*HJK")